package com.framework.buss.bridge.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.framework.core.mybatis.config.AutoField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("buss_word_byte")
@ApiModel(value="buss_word_byte", description="模板word章节模板表")
public class WordByte implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    @AutoField("varchar(32) default '' COMMENT '主键'")
    private String id;

    /**文件编号*/
    @ApiModelProperty(value = "文件编号")
    @AutoField("varchar(32) default '' COMMENT '测点编号'")
    private String fileId;

    /**文件名称*/
    @ApiModelProperty(value = "文件名称")
    @AutoField("varchar(100) default '' COMMENT '文件名称'")
    private String fileName;

    /**文件长度*/
    @ApiModelProperty(value = "文件长度")
    @AutoField("int default 0 COMMENT '文件长度'")
    private int length;

    /**数据*/
    @ApiModelProperty(value = "数据")
    @AutoField("BLOB default null COMMENT '数据'")
    private byte[] data;
}
